package db;

import java.sql.*;

public class DBBiz {
	public static void closeConnection(Connection conn){
		try{
			if (conn != null) conn.close();
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	
	public static void closePreparedStatement(PreparedStatement prepSt){
		try{
			if (prepSt != null) prepSt.close();
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	
	public static void closeResultSet(ResultSet rs){
		try{
			if (rs != null) rs.close();
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}
